<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 17-5-2
 * Time: 上午11:21
 */

namespace App\Controller;

use Think\Controller;
class OrderController extends Controller{


    public function index()
    {

<<<<<<< HEAD
        $model=D('Order');
        $datas=$model->search();
        $this->assign(array(
            'datas'=>$datas['data'],
            'page'=>$datas['page'],
        ));
=======
        // $model1=D('Order');
        // $datas=$model1->search();
        // $this->assign(array(
        //     'datas'=>$datas['data'],
        //     'page'=>$datas['page'],
        // ));

>>>>>>> a8dd213a32fe18268995d72a76272b94cad6545e
        $this->display();
    }



    public function del($id)
    {
        $model=M('Order');
        $model->delete($id);
        $this->success('删除成功');

    }


} 